<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" />
<xsl:template match="/">
<html>
	<head>
		<title>Ajout d'une salade</title>
		<link rel="stylesheet" type="text/css" href="../css/page.css" />
    </head>

<body>

<table class="table">
  <tr class="tableRow">
    <td class="tableCell" id="left_col"><div class="min_size"></div></td>
    
     <!-- conteneur -->
    <td class="tableCell" id="conteneur">
      <div class="min_size"></div>
      <!-- header -->
      <div id="header">
        <div id="titre">Pizza Online</div>
        <hr />
        <div id="accessibilite"><!--liens accessibilité-->
          <a href="../index.jsp" accesskey="1">Accueil du site</a> | <a href="#menu">Aller au menu</a> | <a href="#texte" accesskey="s">Aller au texte</a>
        </div>
      </div>
      <!-- fin header-->
      
      <!-- gauche -->
      <div id="left">
      </div>
      
      <!-- droit -->
      <div id="right">
      </div>

<div class="blocTexte" align="center">
<p align="center"><h3>Ajout d'une salade</h3></p>
<hr/>

<form action="../AjoutSalades" method="post">
	<table align="center">
		<tr>
			<td><label>Nom : </label></td>
			<td><input type="text" name="nom_salade" size="10" /></td>
		</tr>
		<!--<tr>
			<td><label>Prix : </label></td>
			<td><input type="text" name="prix_salade" size="10" /></td>
		</tr>-->
		<tr>
			<td><label>Ingredients : </label></td>
			<td width="400"><xsl:apply-templates/></td>
		</tr>
		<tr align="center">
			<td colspan="2">
				<input type="submit" value="Valider" />
				<input type="reset" value="Réinitialiser" />
			</td>
		</tr>
	</table>
</form>
</div>
</td>
<td class="tableCell" id="right_col"><div class="min_size"></div></td>
</tr>
</table>

</body>
</html>
</xsl:template>

<xsl:template match="ROWSET/ROW">
	<input type="checkbox">
		<xsl:attribute name="name">ingredients</xsl:attribute>
  		<xsl:attribute name="value"><xsl:value-of select="nom"/>
  		</xsl:attribute>
  	</input>
	<xsl:value-of select="nom"/>
</xsl:template>
</xsl:stylesheet>